package com.fr.cell.core;

import java.util.List;

public class ArrayTableModel extends ListTableModel
{
  public ArrayTableModel()
  {
  }

  public ArrayTableModel(String[] paramArrayOfString)
  {
    setColumn(paramArrayOfString);
  }

  public Object getValueAt(int paramInt1, int paramInt2)
  {
    Object localObject = getList().get(paramInt1);
    if (!(localObject instanceof Object[]))
      return null;
    Object[] arrayOfObject = (Object[])localObject;
    return arrayOfObject[paramInt2];
  }

  public void setValueAt(Object paramObject, int paramInt1, int paramInt2)
  {
    Object localObject = getList().get(paramInt1);
    if (!(localObject instanceof Object[]))
      return;
    Object[] arrayOfObject = (Object[])localObject;
    arrayOfObject[paramInt2] = paramObject;
  }

  public boolean isCellEditable(int paramInt1, int paramInt2)
  {
    return true;
  }
}